<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_supply_to_merchants_order-update-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<input name="id" th:value="${shopSupplyToMerchantsOrder.id}"
			type="hidden">
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商户ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="merchantsId"
					th:value="${shopSupplyToMerchantsOrder.merchantsId}" name="merchantsId"
					placeholder="请输入商户ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商户收货地址ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="merchantsAddressId"
					th:value="${shopSupplyToMerchantsOrder.merchantsAddressId}" name="merchantsAddressId"
					placeholder="请输入商户收货地址ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="supplyId"
					th:value="${shopSupplyToMerchantsOrder.supplyId}" name="supplyId"
					placeholder="请输入供应商ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderCode"
					th:value="${shopSupplyToMerchantsOrder.orderCode}" name="orderCode"
					placeholder="请输入订单号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品编码 sku编码：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="goodsCode"
					th:value="${shopSupplyToMerchantsOrder.goodsCode}" name="goodsCode"
					placeholder="请输入商品编码 sku编码">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">数量：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="goodsSize"
					th:value="${shopSupplyToMerchantsOrder.goodsSize}" name="goodsSize"
					placeholder="请输入数量">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">单价：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="unitPrice"
					th:value="${shopSupplyToMerchantsOrder.unitPrice}" name="unitPrice"
					placeholder="请输入单价">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">总价：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="totalPrice"
					th:value="${shopSupplyToMerchantsOrder.totalPrice}" name="totalPrice"
					placeholder="请输入总价">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">运费：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="freight"
					th:value="${shopSupplyToMerchantsOrder.freight}" name="freight"
					placeholder="请输入运费">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">运单号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="courierNumber"
					th:value="${shopSupplyToMerchantsOrder.courierNumber}" name="courierNumber"
					placeholder="请输入运单号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">运单号单据：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="courierDocuments"
					th:value="${shopSupplyToMerchantsOrder.courierDocuments}" name="courierDocuments"
					placeholder="请输入运单号单据">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单状态 10.待发货 20.已发货 30.已完成 40.已取消  50无效订单：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderState"
					th:value="${shopSupplyToMerchantsOrder.orderState}" name="orderState"
					placeholder="请输入订单状态 10.待发货 20.已发货 30.已完成 40.已取消  50无效订单">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="createTime"
					th:value="${#dates.format(shopSupplyToMerchantsOrder.createTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="createTime" placeholder="请输入添加时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">修改时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="updateTime"
					th:value="${#dates.format(shopSupplyToMerchantsOrder.updateTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="updateTime" placeholder="请输入修改时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="deleteFlag"
					th:value="${shopSupplyToMerchantsOrder.deleteFlag}" name="deleteFlag"
					placeholder="请输入">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_supply_to_merchants_order-update">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
             			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
  
			//监听提交
			form.on('submit(shop_supply_to_merchants_order-update)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/supply_to_merchants_order/update", data.field);
				return false;
			});
		});
	</script>
</body>
</html>